<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="vue.js"></script>
    <title>Title</title>
</head>
<body>
<div id="box">
        <input type="button" value="按钮" @contextmenu="show($event)">
    <input type="button" value="show2" @contextmenu.prevent="show2()">
</div>
</body>
<script>
    var app = new Vue({
        el: '#box',
        data: {

        },
        methods: {
            show: function(ev) {
                alert(1);
                ev.preventDefault();
            },
            show2: function () {
                alert(2);
            }
        }
    })
</script>
</html>